<!DOCTYPE html>
<!-- saved from url=(0063)http://techbrood.com/threejs/docs/api/core/EventDispatcher.html -->
<html lang="en"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		
		<!--<base href="../../">--><base href=".">
		<script src="./list.js(1).下载"></script>
		<script src="./page.js.下载"></script>
		<link type="text/css" rel="stylesheet" href="./page.css">
	<link href="./prettify.css" rel="stylesheet"><link href="./threejs.css" rel="stylesheet"><script src="./prettify.js.下载"></script></head>
	<body>
		<h1>事件调度器（EventDispatcher）</h1>

		<div class="desc">自定义对象的JavaScript事件。</div>

		<h2>构造器（Constructor）</h2>


		<h3>EventDispatcher()</h3>
		<div>
		创建一个 EventDispatcher 对象。
		</div>


		<h2>方法（Methods）</h2>

		<h3><a href="javascript:window.parent.goTo(&#39;EventDispatcher.addEventListener&#39;)" target="_parent" title="EventDispatcher.addEventListener" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;null&#39;)" title="null" id="addEventListener">addEventListener</a> ( <a href="javascript:window.parent.goTo(&#39;字符串(String)&#39;)" title="字符串(String)">type</a>, <a href="javascript:window.parent.goTo(&#39;函数(Function)&#39;)" title="函数(Function)">listener</a> )</h3>
		<div>
		type - 侦听的事件类型。<br>
		listener - 侦听器，即事件被触发时调用的函数。
		</div>
		<div>
		为某类型事件添加侦听器。
		</div>

		<h3><a href="javascript:window.parent.goTo(&#39;EventDispatcher.hasEventListener&#39;)" target="_parent" title="EventDispatcher.hasEventListener" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;Boolean&#39;)" title="Boolean" id="hasEventListener">hasEventListener</a> ( <a href="javascript:window.parent.goTo(&#39;字符串(String)&#39;)" title="字符串(String)">type</a>, <a href="javascript:window.parent.goTo(&#39;函数(Function)&#39;)" title="函数(Function)">listener</a> )</h3>
		<div>
		type - 侦听的事件类型。<br>
		listener - 侦听器，即事件被触发时调用的函数。
		</div>
		<div>
		检测某类型事件是否已添加侦听器。
		</div>

		<h3><a href="javascript:window.parent.goTo(&#39;EventDispatcher.removeEventListener&#39;)" target="_parent" title="EventDispatcher.removeEventListener" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;null&#39;)" title="null" id="removeEventListener">removeEventListener</a> ( <a href="javascript:window.parent.goTo(&#39;字符串(String)&#39;)" title="字符串(String)">type</a>, <a href="javascript:window.parent.goTo(&#39;函数(Function)&#39;)" title="函数(Function)">listener</a> )</h3>
		<div>
		type - 要删除的侦听器类型。<br>
		listener - 要删除的侦听器函数。
		</div>
		<div>
		删除某类型事件的侦听器。
		</div>

		<h3><a href="javascript:window.parent.goTo(&#39;EventDispatcher.dispatchEvent&#39;)" target="_parent" title="EventDispatcher.dispatchEvent" class="permalink">#</a> .<a href="javascript:window.parent.goTo(&#39;null&#39;)" title="null" id="dispatchEvent">dispatchEvent</a> ( <a href="javascript:window.parent.goTo(&#39;object&#39;)" title="object">event</a> )</h3>
		<div>
		event - 被触发的事件。
		</div>
		<div>
		触发某类型事件。
		</div>


		<h2>源代码</h2>

		<a href="https://github.com/mrdoob/three.js/blob/master/src/core/EventDispatcher.js" target="_blank">src/core/EventDispatcher.js</a>
	

</body></html>